package org.example.stream.demo;

import org.example.stream.demo.entity.User;

import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

public class MapMain {
    public static void main(String[] args) {
        List<User> list = UserBuilder.bindings();

        Set<Byte> s = list.stream().map(User::getAge).collect(Collectors.toSet());
        System.out.println(s);
    }
}
